package com.wdd.atcrowdfunding.manager.service;

import com.wdd.atcrowdfunding.bean.Advertisement;
import com.wdd.atcrowdfunding.util.Page;
import com.wdd.atcrowdfunding.vo.Data;

import java.util.List;
import java.util.Map;

public interface AdvertisementService {
    int insertAdvertisement(Advertisement advertisement);

    Page<Advertisement> pageQuery(Map<String, Object> advertMap);

    int delete(Integer id);

    Advertisement selectAdvert(Integer id);

    int deleteAdverts(Data ds);

    List<Advertisement> selectAdvertsByVo(Data ds);

    Advertisement queryById(Integer id);

    int updateAdvert(Advertisement advertisement);

    List<Advertisement> selectByStatus(Integer status);
}
